import {createRouter,createWebHashHistory} from 'vue-router';

const routes = [

	{
		path:"/",
		component:()=>import("./view/baceLayout.vue"),
		children:[
			{
				path:"/",
				component:()=>import("./view/index.vue")
			},{
			path:"/submit",
				component:()=>import("./view/submit.vue")
			},{
			path:"/forum",
				component:()=>import("./view/forum.vue")
			},{
			path:"/judge",
				component:()=>import("./view/judge.vue")
			},{
			path:"/manage",
				component:()=>import("./view/manage.vue")
			}

			]
	},{
	path:"/download",
		component:()=>import("./view/download.vue")
	},{
	path:"/setJudge",
		component:()=>import("./view/setJudge.vue")
	}



];

const router = createRouter({
	history:createWebHashHistory('/'),
	routes
});

export default router;